package myclasses;


public class Address {
	private String street;
	private String city;
	private String state;
	private String zip;
	private String area;
	private String phone;
	private String countryCode;
	
	public Address(String street, String city, String state, String zip, String area, String phone, String countryCode) {
		this.street = street;
		this.city = city;
		this.state = state;
		this.zip = zip;
		this.phone = phone;
		this.area = area;
		this.countryCode = countryCode;
	}
	
	public String getStreet() {
		return street;
	}
	
	public String getCity() {
		return city;
	}
	
	public String getState() {
		return state;
	}
	
	public String getZip() {
		return zip;
	}
	
	public String getArea() {
		return area;
	}
	
	public String getPhone() {
		return phone;
	}
	
	public String getCountryCode() {
		return countryCode;
	}
	
	
	public String printAddress() {
		String ret = "Street: " + street + "</br>";
		ret += "City: " + city + "</br>";
		if(state != null)
			ret += "State: " + state + "</br>";
		else
			ret += "Country code: " + countryCode + "</br>";
		ret += "Zip code: " + zip + "</br>";
		ret += "Area code: " + area + "</br>";
		ret += "Phone: " + phone + "</br></br>";
		return ret;
	}
	
}